<template>
  <div>{{keyword}}</div>
</template>

<script>
export default {
  data() {
    return {
      keyword: ""
    };
  },
  methods: {},
  created() {
    this.keyword = this.$route.query.keyword;
    console.log("*****************");
    console.log(this.keyword);
    console.log("*****************");
    if (this.$route.query.tage == "worker") {
      this.$router.push({
        path: "/index_manager/workerhead",
        query: {
          keyword: this.keyword
        }
      });
    } else if (this.$route.query.tage == "owner") {
      this.$router.push({
        path: "/index_manager/ownerhead",
        query: {
          keyword: this.keyword
        }
      });
    } else if (this.$route.query.tage == "manager") {
      this.$router.push({
        path: "/index_manager/managerhead",
        query: {
          keyword: this.keyword
        }
      });
    } else if (this.$route.query.tage == "visitor") {
      this.$router.push({
        path: "/index_manager/visitorhead",
        query: {
          keyword: this.keyword
        }
      });
    } 
  },
  components: {}
};
</script>

<style scope>
</style>
